package com.darly.book.presenter.contract;

import com.darly.book.model.flag.BookDistillate;
import com.darly.book.model.flag.BookSort;
import com.darly.book.model.flag.CommunityType;
import com.darly.book.ui.base.BaseContract;
import com.darly.chinese.db.book.table.BookCommentBean;

import java.util.List;


public interface DiscCommentContact {

    interface View extends BaseContract.BaseView {
        void finishRefresh(List<BookCommentBean> beans);

        void finishLoading(List<BookCommentBean> beans);

        void showErrorTip();
    }

    interface Presenter extends BaseContract.BasePresenter<View> {
        void firstLoading(CommunityType block, BookSort sort, int start, int limited, BookDistillate distillate);

        void refreshComment(CommunityType block, BookSort sort, int start, int limited, BookDistillate distillate);

        void loadingComment(CommunityType block, BookSort sort, int start, int limited, BookDistillate distillate);

        void saveComment(List<BookCommentBean> beans);
    }
}
